<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <h2>
      Essential Links
       <Button @click="click2">添加</Button>
    </h2>
    <div style=''>
      <Button @click="click" type="error">消除</Button>
    </div>
    <RadioGroup v-model="button1" type="button">
<Radio label="北京"></Radio>
<Radio label="上海"></Radio>
<Radio label="杭州"></Radio>
<Radio label="深圳"></Radio>
    </RadioGroup>

<CheckboxGroup v-model="fruit">
<Checkbox label="香蕉"></Checkbox>
<Checkbox label="苹果"></Checkbox>
<Checkbox label="西瓜"></Checkbox>
</CheckboxGroup>

  </div>
</template>


<script>
// import Button from "./Button.vue";
export default {
  name: "HelloWorld",
  components: {
    // Button
  },
  data() {
    return {
      msg: "Welcome to Your Vue.js App",
      value:'',
      button1:'深圳',
      fruit:[]
    };
  },
  methods:{
    click(e){
      console.log('-------------')
    },
    click2(e){
      console.log('click2')
    },
    onDateChange(a,b){
      console.log(a,b)
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
$width: 400px;
$height: 400px;

@function fn($height) {
  @return $height /3;
}
@mixin rounded-corners($redius) {
  -moz-border-radius: $radius;
  -webkit-border-radius: $radius;
  border-radius: $redius;
}

.hello {
  h1 {
    color: red;
    h2 {
      color: blue;
      &:hover {
        color: black;
      }
    }
  }
  h2 {
    color: green;
  }
  &-tip {
    color: greenyellow;
    font: {
      size: 40px;
      weight: bold;
      style: italic;
    }
    width: $width;
    height: $height/2;
    background: gray;
  }
}
</style>

